<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/3/15
 * Time: 10:03
 */

namespace app\api\validate;
use think\Validate;

class Comment extends Validate
{

    protected $rule = [
        'title'  => 'require',
        'success_case_id' => 'require',
        'pid' => 'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'name.require' => '评论内容不能为空',
        'success_case_id.require' => '缺少参数',
        'pid.require' => '缺少参数',
    ];
}